package com.huatai.bi.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huatai.bi.entity.BigScreenImageEntity;
import com.huatai.bi.query.QueryImageQuery;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
* @author hecai
* @description 针对表【big_screen_image(上传图片记录表)】的数据库操作Service
* @createDate 2024-07-01 21:04:51
*/
public interface BigScreenImageService extends IService<BigScreenImageEntity> {

    /**
     * 上传图片minio
     * @param multipartFile
     * @return
     * @throws Exception
     */
    String uploadImageMinio(MultipartFile multipartFile) throws Exception;

    /**
     * 上传图片
     * @param multipartFile
     * @return
     * @throws IOException
     */
    String uploadImage(MultipartFile multipartFile) throws IOException;

    /**
     * 分页查询
     * @param query
     * @return
     */
    IPage<BigScreenImageEntity> getPage(QueryImageQuery query);

}
